package com.livestocksolutions;

/* -- Version History --
 *  1.0 : 07 January 2013 - Initial version.
 */

/**
 * This class identifies a Feed that will be used in a mixture.
 * @author Adam Parr
 * @version 1.0
 * 
 * @.modified 05 March 2013
 */
public class UsedFeed extends UsedItem {
	/**
	 * Create an UsedFeed Object using the given Feed and ratio of the item.
	 * @param item The Feed that is being used within a mixture.
	 * @param units The amount of the item that is consumed for this UsedItem.
	 * @param measurement The unit of measure for the units provided.
	 */
	public UsedFeed(Feed item, double units, String measurement){
		super(item, units, measurement);
	}
	
	/**
	 * Simple Constructor to create an empty UsedFeed.
	 */
	public UsedFeed(){
		super();
	}
	
	/**
	 * Set the item of this UsedFeed.
	 * @param item The Feed to set.
	 */
	public void setItem(Feed item){
		super.setItem(item);
	}
	
	/**
	 * Get the item of this UsedFeed.
	 * @return The Feed Item used in the mixture.
	 */
	@Override
	public Feed getItem(){
		return (Feed)LivestockSolutions.getUsableItemByID(item);
	}
}
